﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucDDL.ascx.cs" Inherits="DentScan2.WebApp.UC.ucDDL" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:UpdatePanel runat="server" ID="up">
    <ContentTemplate>
        <table cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td>
                            <asp:DropDownList runat="server" ID="ddl" />
                            <asp:TextBox runat="server" ID="tb" Visible="false" CssClass="inputNormal"/>
                            <asp:FilteredTextBoxExtender ID="ftetb" runat="server" TargetControlID="tb" FilterMode="ValidChars" ValidChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"></asp:FilteredTextBoxExtender>
                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAdd" OnClick="ibAdd_Click" ImageUrl="~/Img/add.png"/>
                            <asp:ImageButton runat="server" ID="bSave" OnClick="bSave_Click" Visible="false" ImageUrl="~/Img/ok.png"/>
                            <asp:ImageButton runat="server" ID="bCancel" OnClick="bCancel_Click" Visible="false" ImageUrl="~/Img/cancel.png"/>
                            <asp:RequiredFieldValidator ID="rfvTxt" runat="server" ControlToValidate="tb" Display="Dynamic" EnableClientScript="False" ForeColor="Red" ErrorMessage="Моля, въведете елемент"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
        <%--<asp:MultiView runat="server" ID="mv" ActiveViewIndex="0">
            <asp:View runat="server" ID="vShow">
                <table cellpadding="0" cellspacing="0" border="1">
                    <tr>
                        <td>
                            <asp:DropDownList runat="server" ID="ddl" />
                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAdd" OnClick="ibAdd_Click" ImageUrl="~/Img/add.png"/>
                        </td>
                    </tr>
                </table>
            </asp:View>
            <asp:View runat="server" ID="vNew">
                <table cellpadding="0" cellspacing="0" border="1">
                    <tr>
                        <td>
                            <asp:TextBox runat="server" ID="tb" />
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvTxt" runat="server" ControlToValidate="tb" Display="Dynamic" EnableClientScript="False" ErrorMessage="Моля, въведете елемент" ValidationGroup="vgDDL"></asp:RequiredFieldValidator>
                            <asp:ImageButton runat="server" ID="bSave" OnClick="bSave_Click" ImageUrl="~/Img/ok.png"/>
                            <asp:ImageButton runat="server" ID="bCancel" OnClick="bCancel_Click" ImageUrl="~/Img/cancel.png"/>
                        </td>
                    </tr>
                </table>
            </asp:View>
        </asp:MultiView>--%>

    </ContentTemplate>
</asp:UpdatePanel>
